<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>反转字符串</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case11-demo1">
    <p>原始字符串:{{message}}</p>
    <p>反转字符串:{{message.split("").reverse().join("")}}</p>
</div>
<script type="text/javascript">
    var case11Demo=new Vue({
        el:"#case11-demo1",
        data:{
            message:"slsher!"
        }
    })
</script>
</body>
</html>